home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d7 / ap102.arc / AUTOPUMA.DOC < prev    next >
Encoding:
Text File  |  1991-04-17  |  33.0 KB  |  991 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                                                                      Page 1
  9.  
  10.  
  11.                                     AUTOPUMA
  12.                           Enhancement Script for Telix
  13.  
  14.      WHAT IS AUTOPUMA?
  15.  
  16.      Autopuma is a script that adds a number of trivial abilities to Telix,
  17.      such as exiting or disconnecting if Telix has not been used,
  18.      displaying incoming bells on the screen, and automatically starting
  19.      MPt/Puma and Bimodem downloads when the host begins sending.
  20.  
  21.  
  22.      WHY IS AUTOPUMA?
  23.  
  24.      Originally this script simply started Puma (since renamed to MPt)
  25.      downloads anytime the Puma string was sent by the host, as Telix
  26.      already does with Zmodem (hence the name, which I have never bothered
  27.      to change).  But I also have a small BBS on the same machine that I
  28.      use for downloads.  Often I would start a download from another BBS
  29.      then have to leave before the download finished.  I'd either have to
  30.      abort the download to bring up the  BBS, or leave with the download
  31.      still going, and wait until I got back to bring up the BBS.  I had
  32.      some kluges to bring up the board when the download finished, but they
  33.      required I remember to trigger them before I started the download.
  34.  
  35.      Since I already had this script running "in the background" all the
  36.      time anyway, I added the ability to monitor activity and bring up the
  37.      BBS after Telix was left unattended for some amount of time.  Then I
  38.      though it'd be nice if Telix brought up the board for an incoming
  39.      call.  I gave it to a friend who asked for a few more things, then I
  40.      needed more things...
  41.  
  42.  
  43.      FILES INCLUDED:
  44.  
  45.           AUTOPUMA.SLC   AUTOPUMA script ("resident" portion).
  46.           APCONFIG.SLC   Configuration script.
  47.           APSMALL.SLC    Small version of AUTOPUMA.SLC.
  48.           APSCNFG.SLC    Configuration script for APSMALL.SLC.
  49.           BIMODXFR.SLC   Used by Autopuma to start Bimodem transfers.
  50.           BIMODXMT.SLC   Bimodem upload script.
  51.           BIMODRCV.SLC   Bimodem download script.
  52.           BIMODEM.SLC    Script similar to that included with BIMOD124,
  53.                          with minor changes to allow compatibility with
  54.                          BIMODXMT/BIMODRCV.
  55.           BIMODEM.SLT    BIMODEM.SLC script source.
  56.           MPTXMT.SLC     MPt upload script.
  57.           MPTRCV.SLC     MPt download script.
  58.           PUMAXMT.SLC    Puma version of MPTXMT.
  59.           PUMARCV.SLC    Puma version of MPTRCV.
  60.           MPTXMT.SLT     MPTXMT.SLC script source.
  61.           MPTRCV.SLT     MPTRCV.SLC script source.
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.                                                                      Page 2
  77.  
  78.           WHO.SLC        Tells who current/last connection was to.
  79.           AUTOPUMA.DOC   This file.
  80.           AUTOPUMA.WP5   WordPerfect 5.1 version of this file.
  81.  
  82.      The difference between the large and small versions is where the code
  83.      for Autopuma's configuration window resides.  This code takes up about
  84.      22K of RAM.  In the large version it resides in the AUTOPUMA.SLC
  85.      script, which gives faster response when changing the configuration,
  86.      but takes up memory you may need for things such as DOS shells and
  87.      external protocols.
  88.  
  89.      In the small version the configuration window code is in the
  90.      configuration script, making the resident portion smaller (and the
  91.      configuration script larger).  However the configuration window will
  92.      not respond as quickly as it does in the large version.
  93.  
  94.      Which version of Autopuma and the configuration script you use is up
  95.      to you.
  96.  
  97.  
  98.      INSTALLATION:
  99.  
  100.      Choose the version of AUTOPUMA.SLC and APCONFIG.SLC you want to use,
  101.      and copy them to the same directory as your other Telix scripts.  If
  102.      you use the small version of Autopuma rename APSMALL.SLC to
  103.      AUTOPUMA.SLC, and APSCONFIG.SLC to APCONFIG.SLC.  If you've never used
  104.      scripts before, press ALT-O from Telix and select "Filenames and
  105.      paths."  Select "C" and enter the directory you want to keep scripts
  106.      in.  Make sure you save it ("Write setup to disk") then get back to
  107.      DOS and copy the appropriate versions of AUTOPUMA.SLC and APCONFIG.SLC
  108.      to that directory.
  109.       
  110.      If you want Autopuma to run every time you run Telix, make a batch
  111.      file (for instance "TLX.BAT") that contains:
  112.  
  113.              TELIX SAUTOPUMA
  114.  
  115.      and run this batch file instead of TELIX.EXE.  To take advantage of
  116.      some Autopuma features you may eventually need to run Telix from a
  117.      batch file anyway.  More on this later.
  118.  
  119.      You may also want to define a key combination to run the configuration
  120.      script.  Press "ALT-K", select <R>egular key table, <E>dit, then
  121.      choose a key combination (I use ALT-N), and define it as:
  122.           @APCONFIG
  123.      or "@APSCNFG" if you use the small version of the configuration
  124.      script.
  125.  
  126.  
  127.      USING AUTOPUMA:
  128.  
  129.      Run Autopuma, either from the DOS command line with:
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.                                                                      Page 3
  145.  
  146.              TELIX SAUTOPUMA
  147.  
  148.      or from within Telix by pressing ALT-G and giving AUTOPUMA as the
  149.      script to run.
  150.  
  151.      Run the configuration script (APCONFIG) with ALT-G from within Telix. 
  152.      This will bring up a window with Autopuma's available options.
  153.  
  154.      Options are:
  155.  
  156.        A - If phone rings once exit with....... 0
  157.  
  158.      If this is set to a non-0 value, and "RING" is received from the modem
  159.      when there is no carrier, Autopuma will exit Telix with that
  160.      errorlevel.  A batch file can use the errorlevel to bring up a BBS, or
  161.      some other software to handle incoming calls.
  162.  
  163.        B - If phone rings twice exit with...... 0
  164.  
  165.      If this is set to a non-0 value, Autopuma will wait for two rings to
  166.      come in from the modem, then exit from Telix with that errorlevel.  If
  167.      a second ring does not come in within 7 seconds of the first then
  168.      Telix will exit with the errorlevel given in option A if it has been
  169.      set.
  170.  
  171.        C - Exit on inactivity.................. After 20:00 with 100
  172.  
  173.      If the time limit is not 0 and Telix detects no local or comm port
  174.      activity within that time it will exit with given errorlevel.
  175.  
  176.        D - Time out even if carrier present?... No
  177.  
  178.      Usually Autopuma considers an active carrier as activity, and will not
  179.      exit Telix if one is present even if nothing else is going on.  If
  180.      this option is set to Yes, an active carrier alone will not be
  181.      considered activity, and Autopuma will exit Telix and hang up on an
  182.      active connection if nothing is received from the host and no local
  183.      activity is detected within the time limit given in option C.
  184.  
  185.        E - Hang up if no activity for.......... 0:00
  186.  
  187.      If this is set to a non-0 value and no activity occurs within that
  188.      time, Autopuma will drop any active carrier.
  189.  
  190.        F - Exit Telix on carrier loss.......... Off
  191.                                                 Once, with 100
  192.                                                 Always, with 100
  193.  
  194.      This will cause Telix to exit with the given errorlevel when the
  195.      carrier is lost.  I use this when I start a download and I know I
  196.      won't be around when it finishes to bring up the BBS (most decent
  197.      BBSes can be told to hang up after a transfer).  If the option is set
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.                                                                      Page 4
  213.  
  214.      to "Once" and the exit is canceled, it will not reset, and the next
  215.      time a carrier drops Telix will not exit.  If set to "Always" and the
  216.      exit is canceled the option will reset, wait for another carrier, then
  217.      try to exit again when it drops.
  218.  
  219.        G - Letter for MPT/Puma protocol........ P
  220.  
  221.      This is the letter you have assigned to the MPt protocol in the Telix
  222.      "File transfer protocols" configuration.  If this is set and "Zmodem
  223.      auto-downloads" is enabled in Telix, Autopuma will begin a receive
  224.      with this protocol when a ^VPuma^V or ^VMPt^V string is received.
  225.  
  226.        H - Letter for Bimodem protocol......... B
  227.  
  228.      This is the letter you have assigned to the Bimodem protocol in the
  229.      Telix "File transfer protocols" configuration.  If this is set and
  230.      "Zmodem auto-downloads" is enabled in Telix, Autopuma will run the
  231.      BIMODXFR script when the Bimodem handshaking string is received, which
  232.      will prepare for a Bimodem transfer.  The delay controls how long
  233.      BIMODXFR will wait for a response to the "Filenames to upload" prompt. 
  234.      Bimodem transfers are discussed below.
  235.  
  236.        I - User defined string................. [none]
  237.  
  238.      This can be any string that, when received by Telix, should trigger
  239.      some action.
  240.  
  241.        J - User defined command................ [none]
  242.  
  243.      This is the action that the user-defined string will trigger.  The
  244.      available options are:
  245.  
  246.           EXIT [errorlevel]        Exits Telix with the errorlevel
  247.           HANGUP                   Hangs up the phone
  248.           SEND [text]              Sends text out the comm port
  249.           LOAD [file]              Loads a configuration file
  250.           SCRIPT [script]          Runs a SALT script
  251.           DOS [command]            Runs a DOS command in a sub-shell
  252.  
  253.      Anything else is considered a DOS command and will be executed from a
  254.      sub-shell.
  255.  
  256.        K - Visual bells........................ Off
  257.                                                 Always, 0.5 seconds
  258.                                                 If no sound, 0.5 seconds
  259.  
  260.      Autopuma can display "BELL!" in the center of the screen for a user-
  261.      selectable duration anytime a bell is received.  Useful for
  262.      environments where silence is required, but you still want to know
  263.      about beeps.
  264.  
  265.        L - Seconds to delay before exit........ 0:10
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.                                                                      Page 5
  281.  
  282.      In most situations that trigger an exit from Telix, Autopuma will
  283.      display a countdown timer before exiting to allow a chance to abort. 
  284.      This sets the length of the delay.
  285.  
  286.        M - Show timer or clock on status line.. Neither
  287.                                                 Timer
  288.                                                 Clock Always
  289.                                                 Clock if no Timer
  290.  
  291.      If Telix status bar is enabled, Autopuma can display either the clock
  292.      time or the length of time Telix has been inactive in the area that
  293.      usually displays the script name.  "Timer" displays the timer if it's
  294.      relevant, otherwise the script name.  "Clock Always" displays the
  295.      current time.  "Clock if no Timer" will display the timer if relevant,
  296.      otherwise the current time is displayed.
  297.  
  298.  
  299.        N - Load options from disk.............. AUTOPUMA.CNF
  300.  
  301.      This allows you to recall previously saved Autopuma configurations
  302.      from a saved file.
  303.  
  304.        O - Save options to disk................ AUTOPUMA.CNF
  305.  
  306.      This will save the current Autopuma settings to a disk file.
  307.  
  308.        P - Unload Autopuma
  309.  
  310.      This removes Autopuma from memory
  311.  
  312.      There are two other options available from this menu that are not
  313.      displayed.  ALT-C will bring up a "color editor".  This allows you to
  314.      set the colors Autopuma uses to display the configuration window.  The
  315.      item to color is selected with up/down arrow, tab/shift tab, or
  316.      home/end.  Colors are selected with left/right arrow or the first
  317.      letter of the color.  The sample box will show what the colors will
  318.      look like.  Selecting "Set to saved Telix colors" will set the colors
  319.      to whatever was last saved in Telix "Screen and color" menu.  Note
  320.      that these color settings are not saved anywhere.  The next time
  321.      Autopuma loads it will revert to Telix' saved colors.  This feature
  322.      may be removed in the future.
  323.  
  324.      The other is ALT-ESC.  By default Autopuma disables the ESC key's
  325.      ability to abort scripts.  On some machines however this slows the
  326.      script down, sometimes intolerably.  ALT-ESC will toggle the
  327.      enabled/disabled state of the ESC key.  This may speed up Autopuma,
  328.      but will prompt you with "Abort Script?" whenever the ESC key is
  329.      pressed.  The state of the ESC key is saved to the Autopuma
  330.      configuration file.
  331.        
  332.  
  333.      MPT DOWNLOADS:
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.                                                                      Page 6
  349.  
  350.      In order for Autopuma to start an MPt or Puma download, you must have
  351.      either PUMA.EXE 1.00, or MPT.EXE 1.10 or greater, and either batch
  352.      files or SALT scripts for performing the transfer from Telix.  MPt and
  353.      Puma scripts are provided, but you can use others if you have them. 
  354.      The protocol must be installed in Telix in the Configuration Options'
  355.      "Protocol Options" screen like this:
  356.  
  357.       Key   Protocol     Upload    Download   BAT or    DL
  358.               Name      Filename   Filename   Script   Name
  359.      -------------------------------------------------------
  360.        P   Puma/MPt     mptxmt     mptrcv     Script    N
  361.  
  362.  
  363.      BIMODEM TRANSFERS
  364.  
  365.      In order for Autopuma to start a Bimodem transfer, you must have
  366.      BIMODEM.EXE 1.24 or greater, and either batch files or SALT scripts
  367.      for performing Bimodem transfers from Telix.  The BIMODRCV.SLC and
  368.      BIMODXMT.SLC scripts are provided, but you can use others if you have
  369.      them.  The protocol must be installed in Telix in the Configuration
  370.      Options' "Protocol Options" screen like this:
  371.  
  372.       Key   Protocol     Upload    Download   BAT or    DL
  373.               Name      Filename   Filename   Script   Name
  374.      -------------------------------------------------------
  375.        B   Bimodem      bimodxmt   bimodrcv   Script    N
  376.  
  377.  
  378.      The BIMODXFR.SLC script is also required by Autopuma for automatic
  379.      Bimodem transfers.
  380.  
  381.      To explain why Autopuma initiates Bimodem transfers the way it does, a
  382.      short explanation of how it handles MPt downloads is required.
  383.  
  384.      Autopuma begins an MPt receive when it receives the handshake string
  385.      sent by an MPt protocol on the remote end that wants to send.  This
  386.      string is different than the handshake sent by an MPt that wishes to
  387.      receive, so there is no conflict.
  388.  
  389.      On the other hand, Bimodem can transfer files in both directions at
  390.      the same time, so there is no distinct sender or receiver.  Because of
  391.      this Bimodem has only one handshake string.  Autopuma can tell the
  392.      host wants to initiate a transfer, but has no way of knowing if it
  393.      should simply start a receive or if it should prompt for files to
  394.      upload.
  395.  
  396.      The approach it takes is this:  If a Bimodem transfer is initiated by
  397.      the remote computer, the user will be prompted to enter files to
  398.      upload.  If there is no response within the time set in Autopuma's
  399.      configuration, a download is assumed.  If files are entered an upload
  400.      is assumed.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.                                                                      Page 7
  417.  
  418.      BIMODXMT.SLC and BIMODRCV.SLC will perform Bimodem transfers.  Both
  419.      scripts require BIMODEM.EXE 1.24 or greater.  If a BIMODEM.PTH file
  420.      exists in the Telix directory it will be used in the transfer.  After
  421.      the transfer the scripts will ask if you want to delete BIMODEM.PTH. 
  422.      If there is no response and the transfer returned a successful status,
  423.      the file is deleted.  If the transfer failed, the file is retained.
  424.  
  425.      NOTE:  In the box Autopuma displays for entering filenames, strings of
  426.      up to 241 characters can be entered.  The Bimodem scripts included in
  427.      the Autopuma ZIP file will accept file lists this long, but other
  428.      Bimodem scripts will not.  If you use different scripts to drive
  429.      Bimodem the file list should not exceed the length of the window.
  430.  
  431.      BIMODEM.SLC is the same as the BIMODEM.SLC included in the Bimodem
  432.      distribution ZIP file, except it ensures that the BIMODEM.CFG and
  433.      BIMODEM.PTH files are created in the default Telix directory, which is
  434.      where BIMODXMT and BIMODRCV expect to find them.  This will allow you
  435.      to mark uploads (and on hosts that permit it, downloads) offline
  436.      through BiMenu, then connect to the host and start the transfer,
  437.      letting Autopuma start Bimodem automatically.
  438.  
  439.  
  440.      AUTOPUMA AND ERRORLEVELS:
  441.  
  442.      To be useful, any option that forces Telix to exit with an errorlevel
  443.      requires Telix to be run from a batch file that uses the "if
  444.      errorlevel" command to test the errorlevel and perform the appropriate
  445.      action.  For instance, if you want Telix to bring up a BBS if a call
  446.      comes in, you need to set "A - If phone rings once exit with......" to
  447.      a non-0 value (say, 100) and run Telix from a batch file that looks
  448.      like this:
  449.  
  450.         rem run Telix with AUTOPUMA
  451.         telix sautopuma
  452.         rem if returned 100 run command to start BBS ("board" in this case)
  453.         if errorlevel 100 board
  454.  
  455.      ENTERING VALUES IN THE CONFIG WINDOW:
  456.  
  457.      Values used as errorlevels cannot exceed 255.  Times cannot exceed
  458.      99:59:59.
  459.  
  460.      If you need to enter characters into string values that are usually
  461.      special (i.e. ENTER or ESC), press CTRL-V or CTRL-P, then the
  462.      character.   Characters that must be entered this way are ENTER, ESC,
  463.      all CTRL characters and any ANSI "ALT<number>" code.  The following
  464.      keys perform these functions:
  465.  
  466.      ENTER:              save changes and quit editing
  467.      ESC:                lose changes and quit editing
  468.      Right arrow/CTRL-D: right one position
  469.      Left arrow/CTRL-S:  left one position
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.                                                                      Page 8
  485.  
  486.      CTRL-right/CTRL-F:  right one word
  487.      CTRL-left/CTRL-A:   left one word
  488.      HOME:               beginning of string
  489.      END:                end of string
  490.      DEL:                delete character at cursor
  491.      Backspace:          delete character left of cursor
  492.      CTRL-DEL:           delete from cursor to end of word
  493.      CTRL-Backspace:     delete from beginning of word to cursor
  494.      CTRL-END:           delete from cursor to end of line
  495.      CTRL-HOME:          delete from beginning of line to cursor
  496.      INSERT:             toggle insert mode
  497.      CTRL-P/CTRL-V:      insert special character
  498.      CTRL-Y:             clear entire line
  499.      CTRL-U:             undo all changes
  500.  
  501.      For numeric and time values:
  502.      Grey '+':           increment value by one
  503.      Grey '-':           decrement value by one
  504.  
  505.      For time values
  506.      CTRL-Grey '+':      increment by one minute
  507.      CTRL-Grey '-':      decrement by one minute
  508.      ALT-Grey '+':       increment by one hour
  509.      ALT-Grey '-':       decrement by one hour
  510.  
  511.  
  512.      CONFIGURING VIA THE ENVIRONMENT:
  513.  
  514.      Autopuma can also be configured partially or entirely through the
  515.      environment rather than a disk file.  The variable AUTOPUMA can be set
  516.      to a string of options that tell Autopuma what to do.  The easiest way
  517.      to create the configuration string is to configure Autopuma through
  518.      the configuration window, save the configuration to a file, then copy
  519.      the configuration file into your batch file (or wherever).  The config
  520.      file is formatted as SET AUTOPUMA=<config string> to allow just that.
  521.      If you want to edit or create the string yourself, the format is:
  522.  
  523.  
  524.         SET AUTOPUMA=[option[:arg1][,arg2]...]...
  525.  
  526.      Options and their arguments are:
  527.  
  528.      R1X:<errorlevel>
  529.           <errorlevel> is the errorlevel Telix should exit with when one
  530.           ring is received.
  531.  
  532.      R2X:<errorlevel>
  533.           <errorlevel> is the errorlevel Telix should exit with when two    
  534.           rings are received.
  535.  
  536.      TOT:<time>,<errorlevel>
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.                                                                      Page 9
  553.  
  554.           <time> is the length of inactivity after which Autopuma will
  555.           force Telix to exit.  <Errorlevel> is the errorlevel Telix will
  556.           exit with.
  557.  
  558.      IC[:switch]
  559.           IC tells Autopuma to ignore a carrier.  Autopuma will exit after
  560.           inactivity (if that option is set) whether a carrier is present
  561.           or not.  <switch> may be 0 (off) or 1 (on), or omitted, which is
  562.           assumed to be 1.
  563.  
  564.      DCT:<time>
  565.           Sets amount of inactivity after which Autopuma will hang up on a
  566.           live connection.
  567.  
  568.      ECL[:switch]
  569.           Tells Autopuma whether or not to exit when a carrier drops. 
  570.           Switch can be:
  571.              0 - do not exit
  572.              1 - once
  573.              2 - always
  574.              If ECL is not followed by any value, 2 is assumed.
  575.  
  576.      ECLX:<errorlevel>
  577.           <errorlevel> is the errorlevel Telix will return if it exits due
  578.           to a carrier drop.
  579.  
  580.      PKEY:<letter>
  581.           <letter> is the letter that has been assigned to the Puma/MPt
  582.           protocol in Telix' "File transfer protocols" configuration.
  583.  
  584.      BKEY:<letter>
  585.           <letter> is the letter that has been assigned to the Bimodem
  586.           protocol in Telix' "File transfer protocols" configuration.
  587.  
  588.      BDLY:<seconds>
  589.           <seconds> is the number of seconds that Autopuma will display the
  590.           upload filename prompt box before it continues with what it
  591.           assumes is a Bimodem receive.
  592.  
  593.      UDS:<string>
  594.           <string> is the string that, if received by Telix, will cause the
  595.           user-defined string to be executed.  The string can contain any
  596.           characters, but the following characters have special meaning to
  597.           Autopuma and must be quoted:
  598.  
  599.              " (double quote)
  600.              ' (single quote)
  601.              , (comma)
  602.              ^ (caret)
  603.              (space)
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.                                                                     Page 10
  621.  
  622.           Characters are quoted by either enclosing the character in double
  623.           or single quotes, or immediately preceding the character with a
  624.           caret (^).  The string Enter name (i.e., "Joe Smith") contains
  625.           spaces, a comma, and quotes that must be quoted.  This can be
  626.           done several ways:
  627.  
  628.              'Enter name (i.e., "Joe Smith")'
  629.              <entire string in single quotes>
  630.  
  631.              "Enter name (i.e., ^"Joe Smith^")"
  632.              <entire string in double quotes, with internal double quotes
  633.              preceded by carets>
  634.  
  635.              Enter^ name^ (i.e.^,^ ^"Joe^ Smith^")
  636.              <all spaces, quotes, and comma preceded by carets>
  637.  
  638.      Control characters can be represented by a caret followed by a letter,
  639.      such as "^A" to represent CTRL-A.  Characters above ASCII 127 must be
  640.      typed using ANSI.SYS' "ALT<keypad>" convention in an editor that
  641.      accepts high ASCII characters.
  642.  
  643.      UDC:<string>
  644.           <string> is the command that will be executed if the user-defined
  645.           string is received by Telix.  It's entered and quoted the same as
  646.           the user defined string.
  647.  
  648.      VB[:switch]
  649.           Controls whether or not incoming bells are displayed.  <switch>
  650.           can be:
  651.  
  652.              0 - bells are not displayed
  653.              1 - bells are displayed only if sound is off
  654.              2 - bells are displayed whether sound is off or not.
  655.           If VB is not followed by any value, 1 is assumed.
  656.  
  657.      DLY:<time>
  658.           <time> is the amount of time Autopuma will delay before exiting
  659.           from Telix.
  660.  
  661.      ST:<switch>
  662.           Controls whether Autopuma displays the clock or timer on Telix'
  663.           status line.  <switch> may be:
  664.  
  665.              0 - display neither
  666.              1 - display timer if relevant; otherwise nothing
  667.              2 - display clock
  668.              3 - display timer if relevant; otherwise clock.
  669.  
  670.      CLR:<border>,<text>,<highlight>,<inverse>
  671.           Sets the colors Autopuma uses to display the configuration
  672.           window.
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.                                                                     Page 11
  689.  
  690.              <border> - Configuration window border
  691.              <text> - Normal configuration window text
  692.              <highlight> - Highlighted text
  693.              <inverse> - Inverse video
  694.  
  695.           Each color is a number calculated as (foreground + background *
  696.           16).  Color values are:
  697.  
  698.              00 Black
  699.              01 Blue
  700.              02 Green
  701.              03 Cyan
  702.              04 Red
  703.              05 Magenta
  704.              06 Brown
  705.              07 Light grey
  706.              08 Dark grey
  707.              09 Light blue
  708.              10 Light green
  709.              11 Light cyan
  710.              12 Light red
  711.              13 Light magenta
  712.              14 Yellow
  713.              15 White
  714.  
  715.           Since most machines display background colors 8 or higher as
  716.           blinking versions of the lower colors, the color editor does not
  717.           allow them to be used as background colors (neither does Telix). 
  718.           However no checks are done on numbers read from the configuration
  719.           file, so you can pick blinking colors this way if you want.
  720.  
  721.           Note that Autopuma doesn't save color settings in configuration
  722.           files itself.  This option is used by scripts that communicate
  723.           with Autopuma.
  724.  
  725.      CFN:<filename>
  726.           This specifies the file from which Autopuma will read and write
  727.           configuration information.  When this option is encountered in a
  728.           configuration string, Autopuma reads the contents of that file
  729.           and sets the configuration to it before continuing with the
  730.           original configuration information.
  731.  
  732.  
  733.      RENAMING AUTOPUMA
  734.  
  735.           If you want to name the AUTOPUMA.SLC to something else you must
  736.           also set the environment variable APNAME to the new script name
  737.           to allow APCONFIG to get the current settings.  Type at the
  738.           command line or add to your batch file:
  739.  
  740.              SET APNAME=<name of autopuma script file>
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.                                                                     Page 12
  757.  
  758.      The WHO script:
  759.  
  760.      This is an unremarkable script that will tell you what entry in your
  761.      dialing directory you are currently connected to.  However if AUTOPUMA
  762.      has been loaded WHO will also tell you who you were just connected to,
  763.      even if the connection has dropped.  Telix does not store this
  764.      information once the connection is lost, but Autopuma does and WHO can
  765.      ask Autopuma for it.  WHO also displays the information in Autopuma's
  766.      current colors.
  767.  
  768.  
  769.      DISCLAIMER:
  770.  
  771.      AUTOPUMA is provided on an "as is" basis without warranty of any kind,
  772.      expressed or implied, including but not limited to the implied
  773.      warranties of merchantability and fitness for a particular purpose.
  774.      The person using the software bears all risk as to the quality and
  775.      performance of the software.  Should the software prove defective, the
  776.      user assumes the entire cost of all necessary repair, servicing, or
  777.      correction.  The author will not be liable for any special,
  778.      incidental, consequential, indirect or  similar damages due to loss of
  779.      data or any other reason, even if the  author or an agent of the
  780.      author has been advised of the possibility of such damages.  In no
  781.      event shall the author's liability for any damages ever exceed the
  782.      price paid for the license to use the software, regardless of the form
  783.      of the claim. 
  784.  
  785.  
  786.      REVISION HISTORY:
  787.  
  788.      Version 1.02, April 16:
  789.  
  790.           Added a version of Erik Labs BIMODEM.SLC script with
  791.           modifications to make it compatible with BIMODXMT and BIMODRCV.
  792.  
  793.           Modified BIMODXFR and AUTOPUMA to allow BIMODXFR to exit
  794.           gracefully if it was run some way other than from AUTOPUMA.
  795.  
  796.           Corrected problem in small version of Autopuma that would ignore
  797.           "Exit on carrier loss" if it was set to "Once".
  798.  
  799.           Configuration script for small version was displaying it's
  800.           initial "Please wait" message in black on black colors.  Fixed.
  801.  
  802.           Included separate Puma versions of the MPt script for Puma users.
  803.  
  804.           Renamed the Autopuma scripts a little to (hopefully) clarify the
  805.           difference between the large and small versions.
  806.  
  807.      Version 1.01, April 12:
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.                                                                     Page 13
  825.  
  826.           Changed the name of the PUMA*.SLT scripts to MPT*.SLT, since that
  827.           is the current name of the protocol.  AUTOPUMA remains AUTOPUMA,
  828.           until I think of something better.
  829.  
  830.           MPt scripts will sound alarms when the transfer completes,
  831.           similar to the alarm Telix uses when it's internal protocols
  832.           complete a transfer.
  833.  
  834.           Added support for Bimodem protocol, and Bimodem scripts.
  835.  
  836.           Autopuma now reads default colors from TELIX.CNF on startup. 
  837.           Removed color editor from menu, but left it accessible via ALT-C. 
  838.           Colors are no longer saved in Autopuma configuration files.
  839.  
  840.           Eliminated unnecessary redrawing by the text entry function,
  841.           reducing flicker.
  842.  
  843.           Time values were accepting times like "10:::::".  Though it
  844.           wasn't doing any harm, it's been fixed.
  845.  
  846.           Text entry function did not allow most legal special characters
  847.           to be used in file names.  Fixed.
  848.  
  849.      Version 1.00, March 16 1991:  Initial release.
  850.  
  851.  
  852.      ANYTHING ELSE?
  853.  
  854.      There is no charge for private, non-commercial use of AUTOPUMA (but if
  855.      you send a check anyway it won't go uncashed).  Comments, requests,
  856.      and suggestions for a better name for this script can be left at:
  857.  
  858.              The Dead of Night BBS
  859.              (703) 644-7667
  860.  
  861.      or mailed to:
  862.  
  863.              Donald Mehrtens
  864.              5923 Minuteman Rd
  865.              Springfield VA 22152
  866.  
  867.      or sent via CompuServe (which I don't check very often) to ID
  868.      72361,1407.
  869.  
  870.      CAVEATS:
  871.  
  872.      There is no direct way to test if a local key has been struck without
  873.      interfering with Telix's ability to process that key.  However most
  874.      local Telix functions momentarily stop the script, and this can be
  875.      detected.  This means individual keystrokes may not always register as
  876.      activity to Autopuma, but any local activity that takes more than a
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.                                                                     Page 14
  893.  
  894.      couple of seconds will register, and characters coming in from the
  895.      comm port will keep the timer resetting.
  896.  
  897.      If using the small version of Autopuma while running Telix under
  898.      Windows, and the PIF file is set to "Detect Idle Time" Telix may take
  899.      excessively long to bring up the configuration window.  On my Compaq
  900.      386/20 it takes upwards of 2 minutes.  Make sure Detect Idle Time is
  901.      off or use the large version of Autopuma under Windows if you have
  902.      this problem.
  903.  
  904.  
  905.      ACKNOWLEDGEMENTS:
  906.  
  907.      Thanks to Bob Price for his help and suggestions; To Lori Davis, for
  908.      her help with this documentation (we programmers don't speak good
  909.      English); and to Colin Sampaleanu for a great comm program.
  910.  
  911.  
  912.      SALT Programmers, HELP!
  913.  
  914.      Is there any way for a script to determine its own name, as DOS batch
  915.      files can do with %0 or C programs can do with argv[0]?
  916.  
  917.      Can a script find out how many and/or what types of arguments the
  918.      main () function was actually passed, so that a script that needs
  919.      arguments can GRACEFULLY exit if it wasn't given any?  Is there
  920.      something similar to C's argc?
  921.  
  922.      As of v3.15 (possibly sooner) the SALT compiler has a "void" keyword. 
  923.      What does it do?
  924.  
  925.      The script runs considerably slower if _scr_chk_key is set to 0 to
  926.      disable the ESC key from prompting to abort the script.  Can anything
  927.      be done about this?  Can the ESC key be prevented from aborting
  928.      scripts without using _scr_chk_key?
  929.  
  930.      Is there any way to find out whether the cursor is on or off?
  931.  
  932.      Is there a cleaner way to find out if the status bar is on than to
  933.      look on the screen for it with vgetchr/vgetstr?
  934.  
  935.      Is there a way to see if a local key has been hit without destroying
  936.      the terminal() function's ability to process it, like cinp_count()
  937.      does with the comm port?
  938.  
  939.      Despite the fact that Telix does not appear able to do anything with
  940.      them, CS will happily compile a script that has no main() function. 
  941.      Is this of any use?
  942.  
  943.      Can a script find out which dialing directory entries are marked?  Can
  944.      a script mark and unmark entries?
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.                                                                     Page 15
  961.  
  962.      And does ANYBODY know ANYTHING about Telix 4.0?
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.